import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import HomeView from '../views/home.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/setting',
    name: 'setting',
    component: () => import('../views/setting.vue')
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/about.vue')
  },
  {
    path: '/menu',
    name: 'menu',
    component: () => import('../views/menu.vue')
  },
  {
    path: '/todo',
    name: 'todo',
    component: () => import('../views/todo.vue')
  },
  {
    path: '/read',
    name: 'read',
    component: () => import('../views/read.vue')
  },
  {
    path: '/color',
    name: 'color',
    component: () => import('../views/color.vue')
  },
  {
    path: '/screenShort',
    name: 'screenShort',
    component: () => import('../views/screenShort.vue')
  },
  {
    path: '/screenRecorder',
    name: 'screenRecorder',
    component: () => import('../views/screenRecorder.vue')
  },
  {
    path: '/online',
    name: 'online',
    component: () => import('../views/online.vue')
  },
  {
    path: '/chat',
    name: 'chat',
    component: () => import('../views/online/chat.vue')
  },
  {
    path: '/jing',
    name: 'jing',
    component: () => import('../views/online/jing.vue')
  },
  {
    path: '/five',
    name: 'five',
    component: () => import('../views/online/five.vue')
  },
  {
    path: '/notes',
    name: 'notes',
    component: () => import('../views/notes.vue')
  },
  {
    path: '/noteInfo',
    name: 'noteInfo',
    component: () => import('../views/notes/noteInfo.vue')
  },
  {
    path: '/music',
    name: 'music',
    component: () => import('../views/music.vue')
  },
  {
    path: '/measure',
    name: 'measure',
    component: () => import('../views/measure.vue')
  },
  {
    path: '/musicPlayer',
    name: 'musicPlayer',
    component: () => import('../views/musicPlayer.vue')
  },
  {
    path: '/translate',
    name: 'translate',
    component: () => import('../views/translate.vue')
  },
  {
    path: '/getWords',
    name: 'getWords',
    component: () => import('../views/getWords.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  // history: createWebHistory(),
  routes
})

export default router
